
package com.lry;


public enum BranchStatus {

    Unknown(0),

    Registered(1),

    PhaseOne_Done(2),

    PhaseOne_Failed(3),

    PhaseTwo_Committed(4),

    PhaseTwo_Rollbacked(5);

    private int code;

    BranchStatus(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

}
